<%--
  Created by IntelliJ IDEA.
  User: HP
  Date: 2021/9/20
  Time: 16:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
    <%--js使用jquery将其引入--%>
    <script type="text/javascript" src="/static/js/jquery-3.4.1.min.js"></script>
</head>
<body>
    <form action="/user/loginCheck" method="post">
        <input type="hidden" name="id"/>
        用户名：<input type="text" name="name"/><br/>
        密码：<input type="password" name="password"/><br/>
        <input type="submit" value="提交"/>
    </form>
    <script type="text/javascript">
        window.onload = function ()
        {
            // 获取由Controller使用addAttribute添加的msg
            var msg = "${param.msg}";
            if(msg != "") {
                alert(msg);
            }
        }
    </script>
</body>
</html>
